package com.tiger.cloud.model.share;

import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.sql.Timestamp;
import java.util.Date;

/**
 * share_sms-crm分享的验证码
 */
public class ShareSms extends TigerBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long userId;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 发送的消息
     */
    private String message;
    /**
     * 验证码
     */
    private String code;
    /**
     * 分类, 1:验证码,2:审核短信,3:审核成功
     */
    private Integer type;
    /**
     *
     */
    private Date createTime;
    /**
     *
     */
//    @Temporal(TemporalType.TIMESTAMP)
    private Timestamp activeTime;
    /**
     * 1:成功,2:失败
     */
    private Integer sendStatus;

    public ShareSms() {

    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return this.phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return this.type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Timestamp getActiveTime() {
        return activeTime;
    }

    public void setActiveTime(Timestamp activeTime) {
        this.activeTime = activeTime;
    }

    public Integer getSendStatus() {
        return this.sendStatus;
    }

    public void setSendStatus(Integer sendStatus) {
        this.sendStatus = sendStatus;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}